main(n)
{
	scanf("%d",&n);
	if(n==5)n=1000;
	else if(n&2&&~n&1)n=600;
	else n=500;
	printf("%d",n);
}
